//
//  HonourTableViewCell.m
//  ZPIOSEducation
//
//  Created by Encoder on 17/2/14.
//  Copyright © 2017年 mini1. All rights reserved.
//

#import "HonourTableViewCell.h"
@interface HonourTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *img1;
@property (weak, nonatomic) IBOutlet UIImageView *img2;
@property (weak, nonatomic) IBOutlet UIImageView *img3;

@end

@implementation HonourTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)setImgs:(NSArray *)imgs{
    _imgs = imgs;
    if (_imgs.count==0) {
        _imageH.constant = 0;
    }else{
        
[_imgs enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
    switch (idx) {
        case 0:
            [_img1 sd_setImageWithURL:obj];
            break;
        case 1:
            [_img2 sd_setImageWithURL:obj];
            break;
        case 2:
            [_img3 sd_setImageWithURL:obj];
            break;
        default:
            break;
    }
}];
        _imageH.constant = 59;
    }
    [self setNeedsUpdateConstraints];
}

@end
